package com.thermofisher.dsc.amanda.auth.mapper;

import com.thermofisher.dsc.amanda.common.BaseMapper;
import com.thermofisher.dsc.amanda.model.po.auth.User;
import java.util.List;
import org.apache.ibatis.annotations.Param;

/**
 * @author wenjie.yang on 1/3/2019.
 */
public interface UserMapper extends BaseMapper<User>{

  List<String> getUserPermissionsCode(@Param("id") Long id);

  List<User> getChildIds(@Param("id") Long id);

  boolean updateNoPasswdUser(@Param("id") Long id, @Param("password") String password);

  List<User> getNoPasswdUsers();

}
